package com.qfedu.edu.iotserver.service;

import com.qfedu.edu.vo.PayVo;
import org.jdom.JDOMException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author xiaobobo
 * @title: PayService
 * @projectName cd-fy-2401-third-project-parent
 * @description: TODO
 * @date 2024/9/25  15:28
 */
public interface PayService {
    /**
     * 支付的业务类
     * @param payVo
     * @param req
     * @return
     */
    String pay(PayVo payVo, HttpServletRequest req) throws Exception;

    /**
     * 微信服务器通知我们的业务处理
     * @param req
     * @param resp
     */
    void weiXinNotify(HttpServletRequest req, HttpServletResponse resp) throws IOException, JDOMException;
}
